{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "9bcef253",
   "metadata": {},
   "source": [
    "------------\n",
    "* 日期：2022-8-31 \\ week02（周三）\n",
    "* 课程：python\n",
    "* 记录人：林荣烽\n",
    "------------\n",
    "\n",
    "# 本周学习内容\n",
    "\n",
    "## 1.准备工作\n",
    "> 1.安装配置python环境（anaconda，清华大学镜像）\n",
    ">> 1.什么是绝对路径和相对路径？\n",
    ">> 2.配置环境，绝对路径有5个需要配置的，绝对路径根据自己的电脑进行配置\n",
    "\n",
    "> 2.回顾：Github Desktop 如何实现本地与云端的链接\n",
    ">> 1.克隆 Gitee的仓库URL，到本地的指定文件路径，例如 C:\\2022-2023-01\\python\n",
    ">> 2.上传 本地笔记到gitee仓库\n",
    "\n",
    "> 3.本周重点知识([jupyter notebook](https://jupyter.org/))\n",
    ">> 1.什么是IDE? (即集成开发环境)\n",
    ">> 2.如何打开jupyter notebook ？\n",
    ">>> 1. cmd\n",
    ">>> 2. cd 指定目录下\n",
    ">>> 3. 输入，jupyter notebook\n",
    "\n",
    ">4. 注：前九周全部使用jupyter notebook (IDE) 来做课堂和课后练习\n",
    "\n",
    "## 2.模块（工具箱·不需要知道怎么做的，只需要会用就可以了）\n",
    "\n",
    "> 1.标准库（python团队自己开发出来的，想着有人如果用我的编程语言的话，常用的一些功能我已经准备好了）\n",
    ">> 1.使用标准库的方法： import 模块名称\n",
    ">> 2.[标准库的库](https://docs.python.org/3/library/index.html)\n",
    "\n",
    "> 2.开源模块(anaconda为例)\n",
    ">> 1.[开源模块](https://pypi.org/)\n",
    "\n",
    "> 3.自定义模块"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "0840edfc",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "hello world`\n"
     ]
    }
   ],
   "source": [
    "print(\"hello world`\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "f28a9fab",
   "metadata": {},
   "outputs": [],
   "source": [
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "b28a4c9d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "time.struct_time(tm_year=2022, tm_mon=9, tm_mday=4, tm_hour=12, tm_min=36, tm_sec=52, tm_wday=6, tm_yday=247, tm_isdst=0)"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "time.localtime()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "3b3824d3",
   "metadata": {},
   "outputs": [
    {
     "ename": "ModuleNotFoundError",
     "evalue": "No module named 'apple'",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mModuleNotFoundError\u001b[0m                       Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-1-fa02c44d74d3>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;32mimport\u001b[0m \u001b[0mapple\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mModuleNotFoundError\u001b[0m: No module named 'apple'"
     ]
    }
   ],
   "source": [
    "import apple"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d38873df",
   "metadata": {},
   "outputs": [],
   "source": [
    "## 课本 P4 第一个项目 可以试一下"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "de776747",
   "metadata": {},
   "outputs": [],
   "source": [
    "## 第一章 共三个项目（知识点课堂讲）\n",
    "## 项目课后写"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "356a0a30",
   "metadata": {},
   "source": [
    "## 3.课后练习\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "11c457c9",
   "metadata": {},
   "outputs": [],
   "source": [
    "## P4 第一个项目"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "e0ce5a83",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Not an odd minute.\n"
     ]
    }
   ],
   "source": [
    "from datetime import datetime\n",
    "\n",
    "odds = [  1,  3,  5,  7,  9, 11, 13, 15, 17, 19,\n",
    "         21, 23, 25, 27, 29, 31, 33, 35, 37, 39,\n",
    "         41, 43, 45, 47, 49, 51, 53, 55, 57, 59  ]\n",
    "\n",
    "right_this_minute = datetime.today().minute\n",
    "\n",
    "if right_this_minute in odds:\n",
    "    print(\"This minute seems a little odd.\")\n",
    "else:\n",
    "    print(\"Not an odd minute.\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0775c203",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
